package com.zyylr.classroomreservationsystem.utils;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

import com.zyylr.classroomreservationsystem.activity.MainActivity;

/**
 * 退出登录接收器
 */
public class LogoutBroadcastReceiver extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        //收到退出登录的广播，销毁所有活动
        ActivityCollector.finishAll();
        Intent intent1 = new Intent(context, MainActivity.class);
        context.startActivity(intent1);
    }
}
